#!/bin/bash
cp safe-rm /usr/local/bin/
cp safe-rm.conf /etc/
ln -s /usr/local/bin/safe-rm /usr/local/bin/rm &>/dev/null
grep -r 'PATH=/usr/local/bin:$PATH' /etc/profile  &>/dev/null
if [ $? -eq 0 ];then
	echo "请退出当前命令行重新登陆才能生效或者执行此命令： source /etc/profile"
else
	echo 'PATH=/usr/local/bin:$PATH' >> /etc/profile 
	echo "请退出当前命令行重新登陆才能生效或者执行此命令： source /etc/profile"
fi
